<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %>
<% request.setCharacterEncoding("utf-8"); %>
<html>

<head>
    <title>订单示例</title>
</head>
</head>

<body>
<h1>JSP示例:订单信息确认页面</h1>
<form method='post'>
    <table width='500' border='1'>
    <tr>
        <td width='150'>姓名:</td>
        <td width='350'>
            <%=request.getParameter("name") %>
        </td>
    </tr>
    <tr>
        <td>地址:</td>
        <td>
            <%=request.getParameter("address") %>
        </td>
    </tr>
    <tr>
        <td>付款方式:</td>
        <td>
            <%=request.getParameter("paymentMethod") %>
        <td>
    </tr>
    <tr>
        <td>店铺优惠:</td>
        <td>
            <%=request.getParameter("discountMethod") %>
        <td>
    </tr>
    <tr>
        <td>给卖家留言:</td>
        <td>
            <% String[] messageToSellers=request.getParameterValues ("messageToSeller" ); if
            (messageToSellers !=null) { for (String messageToSeller : messageToSellers) {
                out.println(messageToSeller + "<br/>" ); } } %>
        <td>
    </tr>
    <tr>
        <td>开具发票:</td>
        <td>
            <%=request. getParameter("invoice") %>
        </td>
    </tr>
    </table>
    <br/><br/>
    <a href='form.html'>返回form.html页面</a>
</form>
</body>

</html>